package com.jrx.anytxn.transaction.service;

import com.jrx.anytxn.common.exception.TxnBizException;
import com.jrx.anytxn.transaction.dto.loan.AmWaiveRepaymentPlanInfoRes;

import java.util.ArrayList;
import java.util.List;

/**
 * 贴息还款计划service
 *
 * @author yf
 * date 2020/4/13 0013
 * @version V1.0
 **/
public interface IWaiveRepaymentPlanInfoService {

    /**
     * 根据以下条件查询贴息利率还款计划list
     * @author fan.yang
     * date: 2020/4/13 0013 下午 14:29
     * @param tenantId 租户ID
     * @param customerId 客户ID
     * @param loanId 订单ID
     * @return java.util.ArrayList<com.jrx.anytxn.transaction.dto.loan.AmWaiveRepaymentPlanInfoRes>
     */
    List<AmWaiveRepaymentPlanInfoRes> getWaiveRepaymentListByLoanIdAndCusId(String tenantId, String customerId, String loanId) throws TxnBizException;

    /**
     * 根据以下条件查询某期的贴息还款计划信息
     * @author fan.yang
     * date: 2020/4/13 0013 下午 14:32
     * @param tenantId 租户ID
     * @param customerId 客户ID
     * @param loanId 订单ID
     * @param tenor 期数
     * @return com.jrx.anytxn.transaction.dto.loan.AmWaiveRepaymentPlanInfoRes
     */
    AmWaiveRepaymentPlanInfoRes getWaiveRepaymentInfoByLoanIdAndCusId(String tenantId, String customerId, String loanId, String tenor,String channel) throws TxnBizException;
}
